package com.cc.moxingvoice.ui.other;

import android.databinding.DataBindingUtil;

import com.cc.moxingvoice.R;
import com.cc.moxingvoice.base.BaseActivity;
import com.cc.moxingvoice.databinding.ActivityDonationBinding;
import com.cc.moxingvoice.lock.AppBarLock;
import com.cc.moxingvoice.lock.DonationLock;

/**
 * 创建日期：2018/2/24 on 18:29
 * 描述：
 * 作者：郭士超
 * QQ：1169380200
 */

public class DonationActivity extends BaseActivity {

    private ActivityDonationBinding mBinding;
    private DonationLock mLock;
    private AppBarLock appBarLock;

    @Override
    protected void initBinding() {
        // 数据绑定操作，可以套用代码
        mBinding = DataBindingUtil.setContentView(this, R.layout.activity_donation);
        mLock = new DonationLock(this, mBinding);
        mBinding.setLock(mLock);
        appBarLock = new AppBarLock(getContext(),  mLock, getString(R.string.donation),
                R.drawable.back, 0, "", getString(R.string.share), AppBarLock.BACK, AppBarLock.SHARE);
        mBinding.appBar.setAppBarLock(appBarLock);
    }

    @Override
    protected void init() {

    }

}
